﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter11.Code03.Code02
{
    public class Demo
    {
        public static void Begin()
        {
            {
                ClassD obj1 = new ClassD();
                ClassD ojb2 = obj1 as ClassD;
            }
            {
                ClassD obj1 = new ClassD();
                ClassA obj2 = obj1;
                ClassD ojb3 = obj2 as ClassD;
                Console.ReadLine();
            }
        }
    }
}
